package mapper;

import bean.Emp;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface EmpMapper {

    @Select("select * from emp where empstate=1")
    List<Emp> findAllEmp();

    @Delete("update emp set empstate=0 where empno=#{id}")
    void deleteEmp(int id);
}
